/**
 * tauge.ui.Header
 * @fileoverview Header content of tauge apps
 * @author Rudin Harianto
 * @version 2011-12-01 0.0.1 alpha
 */
 
 goog.provide('tauge.ui.Header');
 goog.require('goog.ui.Component');
 goog.require('goog.dom.DomHelper');
 goog.require('tauge.soy.header');
 goog.require('soy');
 goog.require('tauge.sys.SystemInformation');
 
 /**
  * tauge Header UI
  * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper
  * @extends {goog.ui.Component} goog.ui.Component
  * @constructor
  */
 tauge.ui.Header = function(opt_domHelper){
	goog.ui.Component.call(this, opt_domHelper);	
 };
 goog.inherits(tauge.ui.Header,goog.ui.Component);
 
 
 
 /**
  * Create UI
  * @override
  */
 tauge.ui.Header.prototype.createDom = function(){
	var sysinfo = tauge.sys.SystemInformation.getInstance();
	var elDiv = this.getDomHelper().createDom('div', {'class' : 'header'});	
	soy.renderElement(elDiv, tauge.soy.Header.generateHtml , {sysInfoLogoUrl : sysinfo.getLogoUrl(), sysInfoName : sysinfo.getName(), sysInfoVersion : sysinfo.getVersion(), userInfoToken : '1', userInfoAvatarUrl : '/img/user/avatar.png', userInfoRealName : 'Rudin Harianto'})
	this.setElementInternal(elDiv);	
 };